<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>{{config('website.website_title')}}</title>
    <link rel="stylesheet" type="text/css" href="{{config('view.icon.url')}}" />
    <link rel="stylesheet" href="{{asset(config('mall.pc_assets').'/css/jingdong.css')}}" />
    <link rel="stylesheet" href="{{asset(config('mall.pc_assets').'/css/public.css')}}" />
    <link rel="stylesheet" href="{{asset(config('mall.pc_assets').'/css/footer.css')}}" />
{{--    <link rel="stylesheet" href="{{asset(config('mall.pc_assets').'/css/header.css')}}" />--}}

</head>
<body id="app">
@include('PShop::ad.index_top')

<!-- 顶部logo下导航 -->
@include('PShop::index.header')
<!-- 顶部logo下导航结束 -->
<!-- 顶部logo下搜索 -->
<div id="jd_pic">
    <div class="serch">
        <img class="logo" src="{{config('website')['site_logo']}}" width="190" height="138" alt="" />
        <div class="search_info">
            <input type="text" class="serch_text" name="keyword" id="searchInput" />
            <button type="button" class="button_sousuo" onclick="enterSearch(event)" name="sousuo"> <img src="{{config('mall.pc_assets')}}/images/sousuo.png"></button>
            <div class="myshopcar">
                <a class="mycar" href="{{route('f_Pc_Cart_cartList')}}">
                    <img src="{{config('mall.pc_assets')}}/images/car.png" class="car-icon" alt="" />
                    <span class="car-title">我的购物车</span>
                    <span  class="num" >{{$cart_num??0}}</span>
                </a>
            </div>
{{--            <div class="hide_mycar"></div>--}}
{{--            <img src="{{config('mall.pc_assets')}}/images/num.png" class="num" alt="" />--}}
{{--            <ul class="small_daohang">--}}
{{--                <li><a href="" style="color: #F10215;">买一免4</a></li>--}}
{{--                <li><a href="">京选卖家</a></li>--}}
{{--                <li><a href="">农耕节</a></li>--}}
{{--                <li><a href="">每200减50</a></li>--}}
{{--                <li><a href="">领卷狂减</a></li>--}}
{{--                <li><a href="">暖风机</a></li>--}}
{{--                <li><a href="">休闲零食</a></li>--}}
{{--                <li><a href="">2件5折</a></li>--}}
{{--                <li><a href="">纸尿裤</a></li>--}}
{{--            </ul>--}}
            <ul class="big_daohang">
                @include('PShop::public.shop_nav')
            </ul>
        </div>
    </div>
</div>
<!-- 顶部logo下搜索结束 -->
<!-- 主导航开始 -->
@include('PShop::index.all_category')
<!-- 主导航结束 -->

<div class="index-content" id="index-content">
        <!-- 低价购货 一元秒杀 去看看吧 -->
        @includeWhen(false,'PShop::index.sec_kill')

        {{-- 好品--}}
        @includeWhen(false,'PShop::index.ranking')

        {{-- 领卷中心--}}
        {{--@includeWhen($coupons->isNotEmpty(),'PShop::index.coupon',['coupons'=>$coupons])--}}


        @includeWhen(false,'PShop::index.floor_ad',['id'=>'title_info_1'])

        <!-- 享品质 -->
        @includeWhen(false,'PShop::index.goods_list7')
        <!-- 享品质结束 -->
        <!-- 含税机票低至60元 -->
{{--        @include('PShop::index.floor_ad',['id'=>'title_info_2'])--}}
        <!-- 含税机票低至60元结束 -->
        @foreach($category as $first)
            @includeWhen(arr_rand([true,false]),'PShop::index.floor_ad',['id'=>'title_info_'.$first['id']])
            @include('PShop::index.goods_block1',['id'=>'category'.$first['id'],'data'=>$first])
        @endforeach

        @includeWhen(false,'PShop::index.floor_title',['title'=>'特色购','id'=>'shoping'])
        @includeWhen(false,'PShop::index.goods_list2')

        @includeWhen(false,'PShop::index.floor_ad',['id'=>'title_info_4'])
        @includeWhen(false,'PShop::index.floor_title',['title'=>'还没逛够','id'=>'nogo'])
        @includeWhen(false,'PShop::index.goods_list1')

        <!-- 中间悬停 -->
        @include('PShop::index.left_category')
        <!--中间悬停结束-->
</div>

        @include('PShop::public.footer')

        <!-- 顶部悬浮 -->
        @include('PShop::index.top_search')
        <!-- 顶部悬浮结束 -->
        @include('PShop::index.right_nav')
        <script type="text/javascript" src="{{asset(config('view.plugin').'/jquery/jquery-3.2.1.min.js')}}"></script>
        <script type="text/javascript" src="{{asset(config('mall.pc_assets').'/js/public.js')}}"></script>
        <script type="text/javascript" src="{{asset(config('mall.pc_assets').'/js/jd.js')}}"></script>
        <script type="text/javascript" src="{{asset(config('mall.pc_assets').'/js/slider.js')}}"></script>
<script type="text/javascript" charset="utf-8">
    function enterSearch(event){
            var keyword = document.getElementById('searchInput').value;
            window.location.href= "{{route('f_Pc_Goods_search')}}?keyword="+keyword;
    }
</script>

<script type="text/javascript" charset="utf-8">
    function goodsSearch(event){
        var keyword = document.getElementById('searchInput').value;
        window.location.href= "{{route('f_Pc_Goods_search')}}?keyword="+keyword;
    }
</script>

</body>
</html>